#define VF_PAW 2 /* Prefix AlWays: dont use without Prefix (FUTURE) */
typedef struct _vtype
{
const char * name; /* prefix */
int id; /* number for communication */
int len; /* size of prefix for comparison */
int offset; /* offset to cut prefix */
int flags; /* flags (e.g. duplicate result ...) */
char* replace; /* if prefix matches, replace w/that prefix */
void (*do_set)(char*,char*); /* set-function */
char* (*do_get)(char*); /* get-function */
} VTYPE;
static CONST VTYPE vartypes[] =
{
#ifdef N_DEF
{"SHVAR_", VAR_SH , 6, 6, 0, NULL, NULL, NULL},
{"ARP_", VAR_MNX, 4, 4, 0, NULL, NULL, NULL},
{"RXFUNC ", VAR_RXF, 7, 7, 0, NULL, NULL, getQ},
{"RXSFUNC ",VAR_RXF, 8, 8, 0, NULL, NULL, getQ},
#endif
{"SFLAG_", VAR_SF, 6, 6, 0, NULL, (void (*)(char*,char*))SetSpecialFlag, GetSpecialFlag}, /* we need 3 names */
{"SINT_", VAR_SI, 5, 5, 0, NULL, (void (*)(char*,char*))SetSpecialInt, GetSpecialInt}, /* for the 3 different types (or we have to put them together) */
{"SPC_", VAR_SV, 4, 4, 0, NULL, (void (*)(char*,char*))SetSpecialVar, GetSpecialVar}, /* of special vars else there are big problems */